home *** CD-ROM | disk | FTP | other *** search
Makefile | 1992-05-18 | 794 b | 29 lines |
- PASSWORD = sd4u53ut
-
- SEGMENT = __CRYPTSUM
- SECTION = __table
-
- CFLAGS = -g -Wall -O
-
- LIBS = -L. -lcryptsum
- LDFLAGS = -segcreate ${SEGMENT} ${SECTION} dummy.cryptsums
-
- all: libcryptsum.a cryptsums example
-
- libcryptsum.a: cryptsum.c cryptsum.h
- ${CC} ${CFLAGS} -c cryptsum.c
- ar crv libcryptsum.a cryptsum.o
- ranlib libcryptsum.a
-
- cryptsums: libcryptsum.a cryptsums.c
- ${CC} -o cryptsums ${CFLAGS} cryptsums.c ${LIBS}
-
- example: libcryptsum.a cryptsums example.c
- ${CC} -o example.unsecure ${CFLAGS} -DSECURE -DPASSWORD=\"${PASSWORD}\" example.c ${LIBS} ${LDFLAGS}
- cryptsums example.unsecure ${PASSWORD} > example.cryptsums
- segedit example.unsecure -replace ${SEGMENT} ${SECTION} example.cryptsums -output example.secure
-
- clean:
- rm -f *.a *.o *.unsecure *.secure cryptsums example.cryptsums
-
-